package com.briup.entity;

import java.io.Serializable;
import java.sql.Timestamp;

public class Environment implements Serializable{
    //环境种类名称 二氧化碳 光照 温湿度
    private String name;
    //发送端id 第1列
    private String srcId;
    //树莓派系统id  第2列
    private String desId;
    //实验箱区域模块id(1-8)  第3列
    private String devId;
    //模块上传感器地址  第4列
    private String sersorAddress;
    //传感器个数  第5列
    private int count;
    //发送指令标号 3表示接收数据 16表示发送命令
    private String cmd;  // 第6列
    //环境值  第7列
    private float data;
    //状态 默认1表示成功  第8列
    private int status;
    //采集时间  第9列
    private Timestamp gather_date;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSrcId() {
        return srcId;
    }

    public void setSrcId(String srcId) {
        this.srcId = srcId;
    }

    public String getDesId() {
        return desId;
    }

    public void setDesId(String desId) {
        this.desId = desId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public String getSersorAddress() {
        return sersorAddress;
    }

    public void setSersorAddress(String sersorAddress) {
        this.sersorAddress = sersorAddress;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public float getData() {
        return data;
    }

    public void setData(float data) {
        this.data = data;
    }

    public Timestamp getGather_date() {
        return gather_date;
    }

    public void setGather_date(Timestamp gather_date) {
        this.gather_date = gather_date;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Environment{");
        sb.append("name='").append(name).append('\'');
        sb.append(", srcId='").append(srcId).append('\'');
        sb.append(", desId='").append(desId).append('\'');
        sb.append(", devId='").append(devId).append('\'');
        sb.append(", sersorAddress='").append(sersorAddress).append('\'');
        sb.append(", count=").append(count);
        sb.append(", cmd='").append(cmd).append('\'');
        sb.append(", status=").append(status);
        sb.append(", data=").append(data);
        sb.append(", gather_date=").append(gather_date);
        sb.append('}');
        return sb.toString();
    }
}
